import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: '/',
    name: 'Login',
    component: () => import('@/views/Login.vue'),
    meta: {
      title: '登录界面'
    }
  },
  {
    path: '/login',
    redirect: '/'
  },
  {
    path: '/HelloWorld',
    name: 'HelloWorld',
    component: ()=>import('@/components/HelloWorld.vue'),
    meta: {
      title: '首页测试'
    }
  },
  {
    path: '/home',
    name: 'VueHome',
    component: ()=>import('@/views/Home.vue'),
    meta: {
      title: '首页欢迎'
    }
  }
  
]

const router = createRouter({
  history: createWebHistory(""),
  routes
})

export default router;
